import request from '@/utils/request'

// 查询列表
export function listypgResult1(query) {
  return request({
    url: '/similitudeAnalyse/page',
    method: 'get',
    params: query
  })
}

export function listypgResult2(query) {
  return request({
    url: '/hisEarDamAnalyse/page',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getSimilitudeAnalyse(id) {
  return request({
    url: '/similitudeAnalyse/fingById?id=' + id,
    method: 'get'
  })
}
// 查询详细
export function getHisEarDamAnalyse(id) {
  return request({
    url: '/hisEarDamAnalyse/fingById?id=' + id,
    method: 'get'
  })
}


// 新增区县致死性差异性
export function addypgResult(data) {
  return request({
    url: '/ypgResult/save',
    method: 'post',
    data: data
  })
}

// 修改区县致死性差异性
export function updateypgResult(data) {
  return request({
    url: '/ypgResult/update',
    method: 'post',
    data: data
  })
}

// 删除
export function delypgResult(id) {
  return request({
    url: '/ypgResult/delete',
    method: 'post',
    data:{
    	id:id
    }
  })
}
// 获取地市级行政区预评估结果统计表
export function getPrefectureResult(taskNum) {
  return request({
    url: '/result/getPrefectureResult',
    method: 'get',
    params:{
    	taskCode:taskNum
    }
  })
}

export function getResult(taskNum) {
  return request({
    url: '/result/getResult',
    method: 'get',
    params:{
    	taskCode:taskNum
    }
  })
}

